<style>
.leftboxdata{ border:1px solid #ddd; border-top:none; margin-bottom:20px;}
.leftboxdata .form-group{ margin:0; border-top:1px solid #ddd;}
.leftboxdata label{ width:15%; text-align:right; padding:8px; float:left; height:50px; line-height:34px; margin-bottom:0;}
.leftboxdata .dataBox{ width:75%; padding:8px; float:left; border-left:1px solid #ddd;}
.leftboxdata input.form-control{ width:70%;}
.leftboxdata select.form-control{ width:50%;}.leftboxdata textarea.form-control{ width:100%;}
</style>
<div class="form-horizontal leftboxdata">
	<div class="form-group blocktitle">
        <div class="dataBox" style="width:100%; border-left:none;">-- 付费阅读 --</div>
    </div>
    <div class="form-group">
        <label for="__pay_is_pay" class="col-md-2 label-control">是否付费</label>
        <div class="dataBox">
            <php>
                $val = -1;
                if($__is_edit) $val = $__info['__pay_is_pay'];
            </php>
            <select name="post[__pay_is_pay]" id="__pay_is_pay" class="form-control">
                <option value="0" <?php if($val==0) echo 'selected';?>>否</option>
                <option value="1" <?php if($val==1) echo 'selected';?>>是</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="__pay_money" class="col-md-2 label-control">付费金额</label>
        <div class="dataBox">
            <input type="number" value="<?php if($__is_edit) echo $__info['__pay_money'];?>" name="post[__pay_money]" id="__pay_money" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label for="__pay_content" class="col-md-2 label-control">付费内容</label>
        <div class="dataBox">
            <script type="text/plain" id="__pay_content" name="post[__pay_content]" style="height:200px;"><?php if($__is_edit) echo $__info['__pay_content'];?></script>
        </div>
    </div>
</div>
<script>
$(function () {

editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('__pay_content');
try {
    editorcontent.sync();
} catch (err) {
}

$('.btn-cancel-thumbnail').click(function () {
    $('#thumbnail-preview').attr('src', '/public/themes/admin_simpleboot3/public/assets/images/default-thumbnail.png');
    $('#thumbnail').val('');
});

$('#more-template-select').val("");
});
</script>